<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>隐式类型转换</title>
    <script>
        var a = true;
        console.log(a, typeof a);

        a = a +'';
        console.log(a, typeof a);

        var b = '123';
        console.log(b, typeof b);
        b = b - 0;
        console.log(b, typeof b);

    </script>



</head>
<body>

</body>
</html>